import request from '@/utils/request'

// 查询报废库存查询列表
export function listScrapInventoryInquiry(query) {
  return request({
    url: '/wareManagement/scrapInventoryInquiry/list',
    method: 'get',
    params: query
  })
}

// 查询报废库存查询详细
export function getScrapInventoryInquiry(scrapId) {
  return request({
    url: '/wareManagement/scrapInventoryInquiry/' + scrapId,
    method: 'get'
  })
}

// 新增报废库存查询
export function addScrapInventoryInquiry(data) {
  return request({
    url: '/wareManagement/scrapInventoryInquiry',
    method: 'post',
    data: data
  })
}

// 修改报废库存查询
export function updateScrapInventoryInquiry(data) {
  return request({
    url: '/wareManagement/scrapInventoryInquiry',
    method: 'put',
    data: data
  })
}

// 删除报废库存查询
export function delScrapInventoryInquiry(scrapId) {
  return request({
    url: '/wareManagement/scrapInventoryInquiry/' + scrapId,
    method: 'delete'
  })
}
